package satir.command;

import satir.SatirAnalysis;
import satir.SatirTherapy;
import satir.framework.command.RegularCommand;
import satir.framework.command.State;

/**
 * The Class AnalyzeUserCmd.
 * @version 3.0 April 2012
 * @author Creative Family
 */
public class AnalyzeUserCmd implements RegularCommand {

    /**
     * Execute to analyze user.
     */
    @Override
    public void execute() {
	SatirAnalysis analyst = SatirAnalysis.getInstant(
		SatirTherapy.SAVEDIRECTORY, SatirTherapy.RUNTIMEDIRECTORY,
		SatirTherapy.CONFIGDIRECTORY);
	analyst.startAnalyze();
    }

    /**
     * Execute to call another execute method.
     * @param state
     *         the State object
     */
    @Override
    public void execute(final State state) {
	execute();
    }

    /**
     * Gets the instruction.
     * @return instruction detail
     */
    @Override
    public String getInstruction() {
	return "Analyze specific user.";
    }

}
